/**
 * 
 */
package STUDENTS.DANGTIENLONG.MVC.Ex05;

/**
 * @author Tien Long
 *
 */
public class Models {
	public boolean CheckInfo (Couple obj){
		if(obj.getSex() == 0){
			if(obj.getAge() >= 22 && (obj.getMarriedStatus() == 0 || obj.getMarriedStatus() == 2))
				return true;
		}
		if(obj.getSex() == 1){
			if(obj.getAge() >= 19 && (obj.getMarriedStatus() == 0 || obj.getMarriedStatus() == 2))
				return true;
		}
		return false;
	}
	
}
